<?php


namespace app\index\controller;
use think\Controller;

class register extends Controller
{
    /**
     * 个人中心首页
     */
    public function index(){
        $id = session('user.id');
        if(empty($id)){
            $this->redirect('index/login');
        }
        $data = Db('user')->where(['id'=>$id])->find();
        $this->assign('data',$data);
        return $this->fetch('register');
    }


    /**
     * 修改
     */
    public function edit(){
        if(request()->isPost()){
            $post = input('post.');
        }
    }









}